; Fix last change in buffer-menu.el
authorEli Zaretskii <eliz@gnu.org>
Tue, 6 Feb 2024 19:55:57 +0000 (21:55 +0200)
committerEli Zaretskii <eliz@gnu.org>
Tue, 6 Feb 2024 19:55:57 +0000 (21:55 +0200)
* etc/NEWS: Elaborate about the binding of the new command.

* lisp/buff-menu.el (Buffer-menu--selection-message): Fix wording
of new message.
(Buffer-menu-toggle-internal): Doc fix.  (Bug#68949)

etc/NEWS
lisp/buff-menu.el

index f980d612a578c79d6ac81a5ea7a4eab501b7f121..ee7462cb2aabb8a2b218d1c34cfb4d60c0e04814 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1307,7 +1307,8 @@ chat buffers use by default.
 *** New command 'Buffer-menu-toggle-internal', locally bound to 'I'.
 This command toggles the display of internal buffers in Buffer Menu mode;
 that is, buffers not visiting a file and whose names start with a space.
-Previously, such buffers were never shown.
+Previously, such buffers were never shown.  This command is bound to 'I'
+in Buffer menu mode.
 
 ** Customize
 
index 9561141f0c3cc520a3e608f6a8f8e19a6d241bee..29ca3b41f0c7fa1fc148d73f832ae26eeb1e045f 100644 (file)
@@ -329,7 +329,7 @@ ARG, show only buffers that are visiting files."
 (defun Buffer-menu--selection-message ()
   (message (cond (Buffer-menu-files-only "Showing only file-visiting buffers.")
                  (Buffer-menu-show-internal "Showing all buffers.")
-                (t "Showing all non-internal buffers."))))
+                (t "Hiding internal buffers."))))
 
 (defun Buffer-menu-toggle-files-only (arg)
   "Toggle whether the current `buffer-menu' displays only file buffers.
@@ -344,7 +344,7 @@ negative ARG, display other buffers as well."
 
 (defun Buffer-menu-toggle-internal (arg)
   "Toggle whether the current `buffer-menu' displays internal buffers.
-With a positive ARG, display non-internal buffers only.  With zero or
+With a positive ARG, don't show internal buffers.  With zero or
 negative ARG, display internal buffers as well."
   (interactive "P" Buffer-menu-mode)
   (setq Buffer-menu-show-internal